package com.gthncz.beans;

import org.springframework.security.core.GrantedAuthority;

import lombok.Data;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;

@Data // GETTER & SETTER
@RequiredArgsConstructor // 生成 final 类型 和 @NonNull 的 args 的constructor
public class GrantedAuthorityImpl implements GrantedAuthority{
	
	private static final long serialVersionUID = 1L;
	
	@NonNull
	private String authority;

	@Override
	public String getAuthority() {
		return this.authority;
	}

}
